import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import App from './App'
import router from './router'
import store from './store'
import 'ant-design-vue/dist/antd.css'
import '@/vab'

import FlowDesignTCD from '@/components/customFlow' //流程编辑器
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
/**
 * @author chuzhixin 1204505056@qq.com
 * @description 正式环境默认使用mock，正式项目记得注释后再打包
 */
if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('@/utils/static')
  mockXHR()
}
const app = createApp(App)

app.use(FlowDesignTCD) //流程编辑器
app.use(VXETable)
app.use(store).use(router).use(Antd).mount('#app')
